---------------------------------------------------
-- Mobskill: Stellar Burst
--
-- A starburst damages targets in an area of
-- effect. Additional effect: Silence
-- Family:: Humanoids
-- Type: Magical
-- Can be dispelled: N/A
-- Utsusemi/Blink absorb: 2-3 shadows?
-- Range: Unknown
-- Notes: Used only by Eald'narche during his
-- second form for ZM16 and Apocalypse Nigh.
---------------------------------------------------

require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");

---------------------------------------------------

function OnMobSkillCheck(target,mob,skill)
	return 0;
end;

function OnMobWeaponSkill(target, mob, skill)
	local numhits = 1;
	local accmod = 1;
	local dmgmod = 1;
	local info = MobMagicalMove(mob,target,skill,mob:getWeaponDmg(),ELE_NONE,dmgmod,TP_NO_EFFECT);
	local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_MAGICAL,MOBPARAM_NONE,MOBPARAM_3_SHADOW);
    MobStatusEffectMove(mob, target, EFFECT_SILENCE, 1, 0, 30);
	target:delHP(dmg);
    mob:resetEnmity(target);
	return dmg;
end;